added test for attribute type