I've added tests to account for user registration when already and not yet registered.
The other changes to the `AuthorizationService` were simply reorganization and should be covered by existing tests.