Fix tests failing for syntax error