added Unit tests for Apache commons math APIs