Fixed test to allow for lists:foreach/2 call