added get_first_day_of_next_month API, and tests