Collector: add test infrastructure