.add a unit test for custom collector