Increase test coverage for domain objects.
Remove warnings.