Added some tests and new functionality to the nx_ray2-object.