Fix tests for python 3. I forgot to mock getargspec.