Add test to simulate corruption

This test picks a random byte in the buffer, mutates it, and then
attempts to open it.  If the open throws an exception then the test
fails, otherwise it passes.