adding in test for syntax error