Define factory for creating dates for testing
Update spec to use date_index factory