Tweaking Pty in tests