added test code for ad serving