Add tests for serialising snapshots.