Fix failing test by ensuring an initialization value for the attributes list.