test: add tests for domain