add more tests of snapshot.