Fix tests affected by database sort order

When running these tests on my VM one of them failed repeatedly, returning the format types in a different order.