Added unit test for unauthorized_handler, bugfixes.

Added unauthorized_handler call to roles_required and roles_accepted
decorators.

Related to issue #255.