added one more test case in test_rpc.py and fixed a bug in rpc.Future