Add a test case for attribute handling.