Added domain objects and unit test for their methods.