Admit future date ranges search, fixes #4654

Squashed commit of the following:

commit 62bc1451c9f4f6b247b87d96f6cf7dc7d3f87da4
Author: José Raddaoui Marín <raddaouimarin@gmail.com>
Date:   Wed Aug 14 21:19:51 2013 +0200

    Update test with searchs of future dates

commit f2749d91bfa1beb57f9c9d3a24b26cd26faa8888
Author: José Raddaoui Marín <raddaouimarin@gmail.com>
Date:   Wed Aug 14 21:19:19 2013 +0200

    Change end term to allow search future date ranges