add test cases for aggregatestep