Added tests for registering users