fix two failing test in IPython.lib

the output of pylab magic changed slightly and these two tests started failing. This fixes the failures