Fix test as UserRepository is now invoked twice due to refactoring of token handling