integrals.transforms: Fix for issue 2486
test added for issue 2486
removed trailing whitespace
Merge pull request #2498 from hargup/issue2486

integrals.transforms: Fix for issue 2486