updated domain logic test unit