beef up testing of `foreach`