Improve checks regarding annotation boundaries

Resolves #6

Change-Id: I3a41d239ea44923720bb7d557de26f30f285ae67
diff --git a/t/annotation.t b/t/annotation.t
index 1176c98..998e7ea 100644
--- a/t/annotation.t
+++ b/t/annotation.t
@@ -78,6 +78,11 @@
     ->text_is('span > fs > f > fs f:nth-of-type(3)', 'C & A')
 };
 
+subtest 'Wrong annotations' => sub {
+  ok(!KorAP::XML::TEI::Annotations::Annotation->new('p','Error',0));
+  ok(!KorAP::XML::TEI::Annotations::Annotation->new('p',0,'Occurred'));
+  ok(!KorAP::XML::TEI::Annotations::Annotation->new('p',0,5,'Fehler'));
+};
 
 done_testing;