Add isDomain test.