added testing, fixed missing variable in StanfordPOSTagger class