Use unittest2 instead of unittest with Python 2.6

Make tests compatible with Python 2.6. Requires unittest2 module to be installed.