This makes a good integration test, but it would be nice to have some unit tests of each side. #16 has some tests of the client side (which unfortunately break this test).