test refactoring
added only_intervals, from_date, to_date parameters to find_gaps