Fix bug in ray
More tests on ray