Factor tests into methods
KBASE-1016 #comment add test for JsonClientCaller, fails

Means there's something in JsonClientCaller that causes the call to
fail, although the core of the caller (guts test) works