Added test for calculateNewBeta in simple log reg