restored Python 2.6 compatibility in tests

assertIs and assertIsInstance do not exist in Python 2.6's unittest. Rather
than try to figure out how to properly handle using unittest2, I just wrote
some stubs.