Fixing a bug in the client-tcp test and adding EventEmitter support to the client http transport.