edit raytrace and add test file for it