fix initialisation broadcast-receiver index number and add an unit-test for this