adding tests for domain object logic