converted to Junit4
Using FastMath as of Apache math3