assert that the periodic commit frequency

This test only makes sense with a given set of bytes causing
periodic commits, so assert that. This will yield to a much better
error message if something does go wrong
If there's an error, print out the error file

This gets wiped when the test finishes, so print to console out
in case that helps resolve the error