fixed json cache issue and modified testcase functionality