Add integration tests between GraphQL query and the Gitlab::Ci::RunnerUpgradeCheck for runner upgrade status badge

@pedropombeiro said:

We'll need to add some integration tests between GraphQL query and the Gitlab::Ci::RunnerUpgradeCheck class, which would have uncovered the problem here.

Edited by Miguel Rincon