write test for date dateformat