How to test TS7805 regulator if it is working?
Place 12V DC on the input, and check if the output voltage is 5V. If it is, the part is probably OK. Next connect a 5\$\Omega\$/5W resistor between output and ground. Still 5V? Most likely OK.