Added testcase cache
Fixed return value of cache put