Added testing for corrupt files and aggregator leak test