fix registration tests