added testing for aggregate measure