* fixed baseUrl parsing
** added missing slash to baseUrl-path part check to remove the path, only when it's also a path in the uri
* fixed and added unittests