New error test for if's