fix unit test namespaces
modify inheritance structure of sockstream.