adding tests for snapshot