added a groovy test for each overloaded forEach method.  Fixed a bug in forEach where onError and onCompleted could both be called.