Added a test to measure how long it takes to generate a query.