Add tests to 'prettify_json' onresponse hook