Refactor Authorize test for readability