Added tests for user registration