Common test routines
Tests for write-only mode