Fixed threadsTest in Windows (while checking #25)