add tests using in-memory terminal