Add test with python pexpect