Added order clause to test to avoid errors in different db drivers