Add test case for the server in a separate thread.