Simplified invocation of datepicker widget. Fixed typo in test.