update test Query and DemoException