unit tests for domain classes