Classifying some infinite abelian groups and answering Kaplansky's test questions