adding fix for validating response bodies appropriately