Make the test functions run in coroutines, so that they can be broken across key presses,
and inject real keypresses via tmux.
Some debugging additions (eg options to run things under strace).
Fix an error tab completing in a non-existant directory.