Finally a testsuite! I immediately discovered and fixed several
bugs.