Beyond consistency test of gravity with redshift-space distortions at quasilinear scales