Check syntax from unit tests

Fixes #11.