adding test cases for integralByInterval() and integral()