Remove usage of 'each' call from tests to make them work w. php 7.2; fix an error...