modify singleton test in rostest to use sockets for working cross platform