Add test for  cascade remove of referenceMany with parent reference
cosmetic tweak in test
handle edge case when children are mapped as references