ISSUE-47 Add tests for JSON, JSONP

Basic tests for JSON and JSONP. Checks content type, and result, as well as the option of changing the callback parameter for JSONP.