> @gozala to be clear the issue that I see is that on(windowEvents, "data" could fire before on(browserEvents, "data" in which case this test would produce a false positive.

No it can not, event dispatch order is guaranteed to be FIFO, so since listener on browserEvents is registered first that will be the one to be fired first as well.