added test for constructor