Properly add cacheOperation to serialized data, added according test