Datepicker: Updating escape key tests to new APIs.