The assert_equals should have been really local function. Fixed. (Otherwise not re-initiated in each iteration => buggy error messages).
Made .local non-forward.