Add tests for datepicker