Bug fix on RegistrationManager, tests for custom user model