add more tests for toDate