Replacing assertIsInstance with assertTrue using isinstance.

This is for python 2.6 support.
Replacing usage of assertIsNone with assertTrue(foo is bar).

assertIsNone is not supported in Python 2.6.