Added tests for cache model