Various fileset query tests. See #10782
adjust API method arguments as suggested by Jean-Marie