improved attr test