Test for bad syntax

Closes #10
Merge pull request #31 from abh/issue-10-test

Test for bad syntax