Added tests for advert permissions