Refactored tests.
Authorization.