add test for collector