unittest for the query executor