Fix tests on python2.6

Python2.6 seems to miss unittest.TestCase.assertIs, therefore, we have
to provide a custom replacement.