Add test for the query time in datacollector