testing for constructors