Safety-critical machine learning : development and testing