Fix failing unit test on get_owner on Windows