add test for new date method