Changed test connection query