Fix ipymagic tests