Fixed test case assumptions about order of results.

Added some comments.