Add unit tests to TestTsdbQuery for millisecond support