added tests for early return in reduce operations.
Introduction of actions and streaming of collections.