Unixsocket connection param

Added unixsocket connection argument.
Tests updated and slightly refactored.