Added JUnit test for SundialMath.java