Added tests for JSONClient.