Issue 20011: Added more unit tests and fixes to date widget