Add unit tests for setOwner changes.