Cover authorization_helper with unit tests