[api test] Properly pass along the expended duration in which rolled up events have been received in addition to the periods.