first day fix

first day of week, month based on local calendar
all credits goes to: https://github.com/peterpaulis/
project updated to new testing framework