Material testing and quality assurance