Fix test for $var attributes