Conditional logic testing