Better prep for for decoding to JSON.
Use a more generic check for request objects.
Fix tests broken by versioning feature.