tested query on datetime index