Added an each_with_doy method and test for it