tests: fixed a misuse of the repeat_each() function.