added simple testcase and fix to Router::setBasePath

Can you use a `@dataprovider` for that.