added test code for simple-rpc