Add more details to time logging in test queries