For loop action and simple unit test

Signed-off-by: nigel <nigel.cook@hp.com>