fixed error introduced in nlp unittests by previous commit