had to add a tolerance value to calcTanLine function, which is given a point that lies on the circle within a tolerance (epsilon value) of 1E-12
got the tests scripts working