Automatic test suite for travis

Moved test files into a separate directory, with a reference file to check
for regression/fixes. Added a test script and a line in the travis config.