Support authentication on RPC test script