Added tests for AuthorizationToken and fixed error