Testing gravity using large-scale redshift-space distortions