better fix for windows idle process check and test case