querySetup properly configures spec