adds test for constructors