Export AuthorizationError.
Rearrange tests.
Add initial test case for errorHandler.
Expand test coverage for errorHandler.