Added tests for constructor