Fault Prediction and Localization with Test Logs