fix query boundaries for start and end date
use LocalDate instead of DateFormat in tests