fix test case when run on first day of month