adding tests for setConditions