Add more checkpointing tests, and give them a random stride.

Resolves #1139.