Added missing math library for sqrt
Added extra test to obtain 100% of coverage
Reorganized libraries import order