fixes how gem service uri is determined
fixes bug in api set test
test fix
minor test fix
Merge pull request #801 from punkle/uri

Fixes FetchError when downloading from hosted gem server