add tests for date widget