add date.getBeforeXDay() func test