JAL-2329 tests to confirm behaviour of Java extended for loops