Test registerEnumTransform on Adapter class instead of adapter instance

As the registerTransform is call on the class, the registerEnumTransform should operate on the class as well
Allow call to registerEnumTransform on Adapter class, fix #786