Machine Learning Methods to Detect Obstructive Sleep Apnea under a Robust Testing Framework