test publishing and halting