Fixed primary data handling for data with white space at the beginning and at the end

Change-Id: Ib831e8ab819e7b8ca5767b2c2f61d0afc00deba9
diff --git a/t/annotation/mdp_dependency.t b/t/annotation/mdp_dependency.t
index 478bbc1..1506d8b 100644
--- a/t/annotation/mdp_dependency.t
+++ b/t/annotation/mdp_dependency.t
@@ -71,6 +71,8 @@
 
 is($stream->[0]->[0], '-:tokens$<i>3555', 'Token count');
 
+is($stream->[-1]->[-1], 's:978-3-89487-607-4', 'Last token');
+
 # Term-to-term
 is($stream->[0]->[1], '<:mdp/d:NMOD$<b>32<i>5', 'Term-to-Term');
 is($stream->[5]->[0], '>:mdp/d:NMOD$<b>32<i>0', 'Term-to-Term');