Expanded test API to take in a list of multiple times intervals.