fixing a caching issue and adding test case for caching
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-stratos into lookup