Happy add more tests. The sorting is done by sqlalchemy queries, so there is a question of whether we should test if it works.