TST: to_datetime format tests

related to #4166