add int.test for advert state changing, closed #6