e9e5621307
These functions help reduce duplication in the test harness and make it easier to add tests for other write-modes in the future.