Fixed the registration test failure issue