Added a testcase for weekday&monthday restriction