Improve domain class tests, including properly mocking component objects, adding toString methods.