Improved how the PasswordService is tested.