Implement setOwner on windows. Add test for setOwner_ok.