changeQueryTo

Utility function to help writing tests; it forwards the copy method call to subclasses changing only the query field