BUG-730 : added null checks to tests to increase branch coverage

Change-Id: I2dc01d2c3cedc8af32f85cfc482c4466bdc6f597
Signed-off-by: Dana Kutenicsova <dkutenic@cisco.com>