Add unit test.  Refs #6747.

Make it throw exception if there is no peak found in allowed region.
It will avoid a segamentation fault.

Add unit test for RefineBackground mode.
Merge branch 'feature/6747_improve_mc' into develop