fix unit tests;
test date range intersection