added test case for attribute