Fix query object

fix broken build (CreateComponents) changed to public to handle test framework compilation.