Adding local_test for mediator rpc method
Test fixups
Fixup mediation with rerating