Fixed small issue in counting the Loops
Added a new test to check if the ROUTE_FAILURES are correctly chained