unit test for dateline