Fix test OS compatibility.