test-forkpty: fix expected signature