Clean up tests and server logic.