Domain unit  tests