rspec for ad model