Datepicker: Boilerplate for other method tests.

Moving widget() method test from core.js as it makes more sense in methods.js.