Support for arrays of modification attributes
Fix exception message and test