make the server a property of module export for test access (fixes #4)