[Tests] Implemented few unit tests for datepicker.