migrate advertisement test to spec