Add jsonResponse tests

Signed-off-by: Geoff Lane <geoff@zorched.net>