Add tests for the RPC system

And also change the format of log messages that were troubling admins.