atting tests for constructor