withCondition - add test coverage