Simplify TestAssignIf test cases (else if)