Improve attributes test.