If a prefix was specified with a trailing slash the route was never matching

also added tests