ENH: Adding more checks
The original test's success was only that it did not crash. In fact the test did not successfully associate the attribute to the model entity. The new version checks to see if the model entity has the attribute assicuated with it and vice versa.
Backport: release