Fix resource option BC with the set function

A `resource` value set through the `set` function is now taken into account (and any `path` value set in the constructor) if no path option is specified in the `attach` function itself. 

Updated the resource test to actually check we can reach the underlying Engine.IO server with the set path.