adding tests for libjson