Fixed regression test case to call server.close on done