unit tests for url

we now have better coverage on url section
we also now us an interface in the form of
OAuthInterface to make for better testing and
more generic code