Add the test case of testing with registration rule