Add a unit test for sorting reads