Fix typo in _eval_integral and add tests
Add tests for integration by parts