Update tests to work around json inconsistencies

swagger-php is very inconsistent in how they encode json across versions
of swagger-php and across versions of php.  Hopefully, this works around
all of the issues and this works for all versions.