Fix tests in IPython.utils