Added test for aggregation command line tool
Fix exception class
Merge pull request #167 from andig/add-tools-test

Add test for aggregate.php