Some of tests use different method of assertTrue(isinstance(A, B))
or assertEqual(type(A), B). The correct way is to use
assertIsInstance(A, B) provided by test tools.
And add some relevant hacking files.
Change-Id: I4b154a2e2898e316c61decf856547d57b1dcc2f8