test .createEach() class method