Added tests for date selection and delegate

As an addition to #13