Fix handling of pexpect - posix only
Remove redundant test and adjust test docstrings