add unit test to jsonparser that checks for small query errors

Signed-off-by: Sietse van der Molen <sietse@vdmolen.eu>