Cleaned up register user unit test by removing redundant mocking.