JUnits for UriBuilder, protocol fix

- added junits for uribuilder
- fix for #25