fix libs: getValidMethods, isRouteValid
fix tests: getValidMethods, isRouteValid