Using Machine Learning to Refine Black-Box Test Specifications and Test Suites