Test of J-matrix inverse scattering potentials on photonuclear reactions of A=2,3,4 nuclei