test pattern attr