Testing  domain classes