Add tests to ensure that the baseurl is added to the url.

Ref: #50, #47.