created hasConstructor tester