fix test related to variable attribute not getting set