added a test for unintended graph connection removal during add_trait