Added test cases for integrals.py