update if test cases
Update if test cases
Merge pull request #2149 from ke-yu/fix_if_testcase

Fix if testcases