Added an optional "options" argument to test socket open method, as the ...

...transport session use it with three arguments. Test socket worked with 2.7.0 version but failed with 2.8.0.