use cache for testContext also update clear() and release()
@bug W-2165169@
@reb gtorres@
Merging origin/lin/master-pending/testContext-useCache into master