save listeners into slaveState

You'll get NPE here if testName == null