Restructure datePicker directive to be more testable.