Added test of custom write.