Acceptance tests

Fixes #315.
This is slightly race conditiony, the state could be `inactive` if it takes a while for the container to start.