fixed some failing tests (data has changed)
select interval_type only if time-period