add test to verify buffered write failure