Fix the WantWriteError test on OS X 

See #8.