cleanup ConditionTransform
added test for if condition with boolean var