Fixed tests for python 2.6

self.assertRaises in Python 2.6 must take the callable that such
throws the as the second argument and the arguments passed to
the callable.