test invalidate cache