Add better error handling to checkpoint test.

This should allow us to inspect databases on test failure.