RPC: fix function name argument check
test: add pubsub and rpc tests