test foreach