updated  testServer() initialization in tests