Add unit tests for dates