First client integration test, fixes #5