Fix isOwned to ownerId change in tree unit tests