fix utils undefined error

1) add strict mode, so we can caught undefined variable earlier
2) add test cases for day, week & month

Not sure whether we also need to add those to the schema.