bug fix and updated tests in aidr-tagger-api