e2e tests

In the simplest form, just take some example files that cover most uses and compare them against some "correct" file.