RPC Publisher development, refactoring and tests