Implemented few unit tests for datepicker.