write domain specs/tests