sub JSON::JWT methods in rack middleware test