Battery tester is a thin film of material which changes its color when current/voltage is applied. The thin film of material is formed into a strip pattern which is then coated with conductive material at the end of the strip. By adding supply at the end this particular material changes its color.

You can open and see a DURA CEL Battery