Changed execution of material output and improved tests (#3096)
Merge pull request #3101 from aeslaughter/material-3096

Changed execution of material output
Merge commit '5abf905afbfba28fe33e61e6fcb6b2150e4d9359'