added test for snapshot