fixes unit tests for collector