tweaks to tests for running IPython session in  ui/__init__.py