Added tests for json response