fix foreach looping
new tests