Test constructor and improve test coverage.