Acceptance tests

Fixes #315.
Also `pexpect` is going to be super-fragile.