fixing cv for cox survival functions, cleaning test code