added timeout options and test for (url, options) syntax