Fix RPC

Signed-off-by: Julien Danjou <julien@danjou.info>
Fix testing

Signed-off-by: Julien Danjou <julien@danjou.info>