add some test code for date.
some code for test.