Add IPeakFunctionTest.py. Refs #970