test: possible memory leak

I believe this is a memory leak. If the server does not shutdown correctly, then the address does not get removed from the doc.