Fixing tests to comply with correct behavior of beginningOfWeek

Minor formatting
Updating project to recommended settings