Added an automated test

Very first version. Something with less bash/perl magic would be preferable in the long run.
Merge pull request #5 from markijbema/add-automated-tests

WIP: Added an automated test