option to filter by end date

fix test