Adding and removing of query groups works