add tests for constructors