added simple testcase and fix to Router::setBasePath

Why `!!` is needed here? :rooster: