ed.py revised to work with new ed0.py
tweak test_cmd.py so it works with revised ed.py and ed0.py