Acceptance tests

Fixes #315.