Modify aggregator.js for test