add ability to use custom date picker, add tests for date picker