TestUpdateAndSwap
To make it easier to debug, we break the old test into smaller ones and fix a flake caused by uncleaned test dir.