Test agregations order (ref #899)