added tests fro CacheMatrix