test(snapshot) add tests for recovery from previous snapshot and log