[features] retooling tests to use pexpect instead of subprocess