fixes unit testing bugs for https://github.com/nltk/nltk/issues/581

Fixes unit testing bugs for https://github.com/nltk/nltk/issues/581

I added unittest2 as an import as python 2.6 doesn't have any list comparison asserts, so cleaner code can be used. Unittest2 is also available on python 3 as unittest2py3k.