Refactored old RegisterIntegrationTest into new RegisterTest.