Test write.