Test that the ordering of enums is as expected.