Added a test to register a user