Changed the math and tests of SurvLik error

and derivative.

Signed-off-by: Jonas Kalderstam <jonas@kalderstam.se>