stopServer not working. updated tests for it, but it doesn't work