Fix faulty testcase for invalid domains