GPII-75: added test utils for socket work.
FLUID-75: passing socket tests.
GPII-75: updated tests.