A test of the nature of cosmic accelaration using galaxy redshift distortions