Head light level sensor

If one of my head light sensors is broken is their a way of finding out which one is faulty?

Iv removed them both and tried each one on there own but the lights still point up and its failed the mot.

Also i know the price of the rear is around £100 does anyone know the cost of the front?

Thanks gareth.