increase test coverage of json.h
increasing unittest coverage; fix crash bug while parsing headers