creates mock sockets for tests