test for ray_tracing. Inspired by analogous check test.