Datepicker: Fixing widget() method test and minor coding standard changes.
Datepicker: Updating first batch of structure tests to new APIs and standards.