Organize test so that we know when messages are published