Added each and when methods and unit tests.
Suspend pending.

Signed-off-by: Carlos Nunez <rnunez@nearsoft.com>