update query macro test