Add tests for ClassMap self ordering