Make TestMaterialStatuses generic, and avoid to use specific materials methods (issues #13 and #10).