Corrected camera.castRay() function, seperated tests into Unit and Functional