Testing the registration function.