test server with struct