Test-enhanced learning for pairs and triplets: When and why does transfer occur?