Added an optional "options" argument to test socket open method, as the transport session use it with three arguments.