fix the sms-limit dates key
fix the last day of the timeframe is allowed
fix generated program settings in test