covers initialization, write, flush, close, concurrent writes, and file creation with proper cleanup verification