Fix test_intervals_filter