Add tons of unit tests to Flycheck

Mainly add tests that perform a complete syntax check on a given input file, and test the errors in the buffer afterwards.

Will fix #44.

# State

Started.