added UnAuthorizedError error
code coverage with coveralls attempt