Global testing against sparse alternatives under Ising models