Acceptance tests

Fixes #315.
Surely this is a problem if the test suite is run twice, no?