add test code for attribute map