[test] test case for snapshot