Patch PseudoTerminal instead in tests

Signed-off-by: Michael Malet <MichaelMa@square-enix.com>