[2533] Added more test for cache decorator.