add test for advert controller