TST: fix date parsing issue in test_frame/test_replace_datetime