Added unit tests for constructor