Add some unit tests for conditions

Change-Id: I42d17f849a40bdffcbb9071a7d6724e6acf800b4
Signed-off-by: Rob Adams <readams@readams.net>