Implemented getPreviousDayOfWeek and all unit tests.