Fixed some troubles. Should validate memory cache hit test.