Test write text.