bugfixes for rpc v1 client and testcases