Cosmological test of gravity using weak lensing voids