Add missing context arg for resync rpc handler, updated test RPC script to trigger resync