Testing bag-containment of conjunctive queries