set_defaults does not work for more than one kwarg

We used to just pick up the first one and break out of
the loop. Removing the break statement is enough to get
all kwargs to be picked up. Added a test case

Fixes LP# 1160922

Change-Id: I966360fb5af30bc04e9f197c4b6de507636fa25d