added some tests using the intervals param