test for date formatter