Extend tests for RayTracing.
Fix opposite-direction increments in ray-tracing.