Testing the dark energy with gravitational lensing statistics