Improved condition test compilation