Testing Gravity And Dark Energy With Gravitational Lensing