JS backend: make componentWithPrivateProperty test copy() as well