Acceptance tests

Fixes #315.
Say something about waiting for a connection to be established.