test server code