Add test that idno elements are present
diff --git a/test/test-xml.sh b/test/test-xml.sh
index 622c554..f0a84c9 100755
--- a/test/test-xml.sh
+++ b/test/test-xml.sh
@@ -40,6 +40,10 @@
observed=$(xmlstarlet sel --net -t -v "count(/idsCorpus/idsDoc/idsText/idsHeader/profileDesc/textDesc/textTypeRef[normalize-space(.)=''])" target/dnb18.i5.xml)
assert_eq "$observed" "0" "no empty textTypeRef elements"
+min_expected=$(xmlstarlet sel --net -t -v "count(/idsCorpus/idsDoc/idsText)" target/dnb18.i5.xml)
+observed=$(xmlstarlet sel --net -t -v "count(/idsCorpus/idsDoc/idsText/idsHeader/fileDesc/publicationStmt/idno)" target/dnb18.i5.xml)
+assert_gt "$observed" "$min_expected" "exvery text has more than one idno element"
+
exit_with_test_summary