Bug fix for dealing with arbitrary intervals in the fourcoeffs method 

Fixed a bug where the Fourier coefficients were not being computed correctly whenever the domain was not symmetric about the origin.  The issue was that a term arising from the change of variables was not being accounted for.  This bug partially address #1101.

Added a test for this bug.