Lad at college bought himself a 2004 Fiat Punto (1.2 I think

).
Anyways, he said his speedo didn't work and that occasionally it flickered between 0 and 10mph but infrequently; most of the time it doesn't read anything!
So, he decided (without doing any testing

) to buy a new speed sensor and replace it. He gets his new sensor and I can hear him from across the workshop moaning that he cant find the hole for it

. So he eventually fits it and his speedo is still not working.
He said that the only place he could fit the sensor (and which Autodata confirmed) was at the back of the gearbox but he had to take a blanking cap out of the hole

and there was a connector just hanging near it so he used this to plug in.

SO.
We know this sensor wasn't hooked up yet he has had it flickering. So I'm thinking a couple of things....
1.) Is the speed actually taken from the ABS sensor? I don't think so but a possibility that it is and one of those is playing up?
2.) The speed is taken from the gear box speed sensor and perhaps the connector that's just flopping around is occasionally getting grounded by the engine when its moving causing sporadic jumps occasionally and the second hand sensor is junk?
I'm thinking his next steps are to see if there's a voltage coming out of the connector? if so then he can check the component for resistance? Or hook it up, back probe and look for voltage?
Any other ideas?