def test_default_pool(self, pool=None):
        """
        Tests the default pool
        """
        # Setup server
        server = PooledJSONRPCServer(("localhost", 0), thread_pool=pool)
        server.register_function(add)

        # Serve in a thread
        thread = threading.Thread(target=server.serve_forever)
        thread.daemon = True
        thread.start()

        # Find its port
        port = server.socket.getsockname()[1]

        # Make the client
        client = ServerProxy("http://localhost:{0}".format(port))

        # Check calls
        for _ in range(10):
            a, b = random.random(), random.random()
            result = client.add(a, b)
            self.assertEqual(result, a+b)

        # Close server
        server.server_close()
        thread.join()