test for class name and inheritance