implement worker and controller tests