Changed tests due to the way setAttributes works