Speedometer not working

Alright, got the new speed sensor tried to hook it up the best I could. I'm guessing the other one went bad and was replaced someway or another. I have no idea. Anyway, this is how I did it just for testing. I'm assuming there is suppose to be a connector that the sensor hooks onto. As you can see it isn't there. Does anyone know where I could pick up the connector to it? The other thing, how exactly do you test the speed sensor to make sure it is good?