added tests to time.day_of_year, found bug