Changed JWTAuthView from MethodView to View in an efford to prevent code duplication.
Fixed comments
Fixed pep8 errors
Added another test and moved the handler definition into the tests.