Improve error handling for docs without text ids or offset

Change-Id: I48ecdd587ea0ef5b4e95a1f3244f1374caeb9613
diff --git a/t/test.t b/t/test.t
index 23ee224..7954e6d 100644
--- a/t/test.t
+++ b/t/test.t
@@ -1,6 +1,6 @@
 use strict;
 use warnings;
-use Test::More tests => 46;
+use Test::More tests => 50;
 use Test::Script;
 use Test::TempDir::Tiny;
 use File::Copy;
@@ -195,5 +195,9 @@
 like($zipcontent, qr@GOE/AGA/00000/ud/morpho\.xml@, "conllu2korapxml UDPipe input conversion contains morpho layer with foundry name 'ud'");
 like($zipcontent, qr@GOE/AGA/00000/ud/dependency\.xml@, "conllu2korapxml UDPipe input conversion contains dependency layer with foundry name 'ud'");
 
+script_runs([ 'script/conllu2korapxml', 't/data/deu-deps.conllu' ], "Runs conllu2korap with UDPipe input");
+script_stderr_unlike "fileparse(): need a valid pathname", "Ignore sent_id and newdoc id";
+script_stderr_like "WARNING: No valid input document.*token offsets missing", "Warn on missing token offsets";
+script_stderr_like qr@WARNING: No valid input document.*text.id .*missing@,   "Warn on missing text ids";
 
 done_testing;