Add a test for make_main_rpcinterface