randomised quantile residuals, test code