add test for DoubleRay.rotate