improved test coverage and cleaned up the way URLs are handled for making client requests
simplified code significantly by removing url and scheme from http request, also improved test coverage more