Refactored RPCModule tests