added test for classes registered by name