agent: test after stopping UnitStatePublisher too