refs #6617 make sure to reset file mock after each run