RPC handler tests