added back unittest & sorted, see comments: https://github.com/nltk/nltk/pull/583