Add unit test for DateInfo

Signed-off-by: SharplEr <sharplermc@gmail.com>