More work on jsonclient, lite and the tests