add test for #getAd
implement viewability