Implemented valid tests for pub/sec and rpc.
Pub/sub and rpc now pass their base tests.