Added test for query on DateTime field