Correct test_setup_dates() test. #2302