add test for sideeffects
do not rewrite original json objects for storing relations membership