test is_subclass_of method