Add tests for join a domain