Fix if testcases

TD submitted some test cases for testing IF node in recursive function and marked them ``Inconclusive`` because IF node doesn't work properly in recursive function. This pull request replaces IF node with ScopeIF in test files and enable some test cases.