add test for domain class