Added tests for the recently added cache features.