t6300: introduce test_date() helper