test the date picker