DC withstand voltage test and leakage current measurement for stator winding