fix problem with search by date and service
add test cases