Test write length.