required attr test