A step towards testing general relativity using weak gravitational lensing and redshift surveys