tests: Add test for break in for.

For #635 / 25c84643b6c4da169cdb11de54f027e3c477c301.