Add test for changing state of advert