initial $emit and $broadcast with tests