Modify test case for if-statements.

Check if and else-if conditions separately.