Added unit test and cleaned code.  Refs #7652.
Merge branch 'feature/7652_process_bkgd' into develop