Mock server in client tests