created hasConstructor(Class) tester