added a test for aggregate result format