Fix query object

fix broken build (CreateComponents) changed to public to handle test framework compilation.
this is the same as the previous check