modify code and add tests

allow github to return statuses in an unsorted order