Added missing tests for the adverts controller