fix registration test