Add some unit tests for conditions