add test on QueryEngine