Add test for getDomain