Add tests for date search