Added setR getR and python test Re #10768
Added better tests Re #10768