Fixed a few failing tests that did not respond with json format.