Modified calc_rg to limit test_points to relevant dimensions