tests: Add an option for snapshot (default: off)