Add test for aggregate.php