Time measuring and Test Queries