Extract class URLBiulder
Add tests on URLBuilder