Fixing exception in testcollectionprocessor