Fix headwordextractor tests