Add expected error for incorrect syntax