Added unit tests for Attribute & AttributeMgr.