Added test for modulate.
Added raises, versionadded to doc string.