Add tests for autorization.