Extend testing to `Endpoint.get_route_base`. Fix found bugs.