need to init stateRegistry. fix PubSub reference
MediatorSpec