testing the output of material_dates_count_upto