simplify the mock terminal tests a bit