Fix test for interact to handle no pexpect