added unit tests for Quadratic.cpp