master: (1) use system's calendar to determine the first day of week; (2) remove tests