add test on query engine.