fixing jsonreport testing suite and minor fixes in jsonreport module