1. reflector the whole path/uri generation
2. fix the unit test to pass semi valid uri (one that begins with http://), non valid uris will not work
3. rename tests => test, this is the default conversation for mocha