Test and fix for removeHasManyDoubleLinkedAssociation