Add TestClient integration test