Automated impact-based test selection and prioritization