updated tests, join and leave using 'id', not in 'parent'