modify test code and add not register user test class