Unit test for Date class.