Diagnostic testing for predictive maintenance