Conditional Test Logic