spec for forEach and map