test foreach embedded in html