Add unit tests for AttrName (refs #4)