Randomness-aware testing of machine learning-based systems