add server.open and use in tests