Added rpc tests