improved test for long text with line breaks