Added unit test for AdGenController