How to test whether solar panels can generate electricity