Added tests for domain package