Automatically run the testsuite

In the testsuite folder we now have a set of small tests that can be checked automatically. It would be nice to use a proper testing framework and to integrate it with the CI framework of gitlab.