Fix typo in registration test comment
Fix registration test error check