Test for bad syntax

Closes #10