Cache bug

Changed the CacheItemModel to use defined types.
Added static constructor to the cache tab.
Added better tests in CacheShould.