Fixed test on tcpsocket constructors.