Add test case for constructor method