Fixed an issue with a test. Have to sort the results from the rest api, can't guarantee the order of results retrieved from the db.