fixed failing testNLPWithEntityRestriction