test for if clause