Add unit tests for app.broadcast