Fix mode on write abort test
This test fails intermittently, add diagnostics