mocking constructors