Acceptance tests

Fixes #315.
Done.