Properly handle binary output from tcp stubs; more proxy tests