tests: Fix problems in "learning action - self-modifying flow" test.