added testcases
making it possible to shut down the server