tests for #attributes