Unit tests for object friendly sorting

Verifying details of sorting work as intended