fixes some unit tests that were previously failing (#19594)
fixes some unit tests that were previously failing (#19594)


jpettitt/amphtml,widespace-os/amphtml,Gregable/amphtml,sharethrough/amphtml,erwinmombay/amphtml,prateekbh/amphtml,nexxtv/amphtml,ampproject/amphtml,dotandads/amphtml,zhangsu/amphtml,src-code/amphtml,zhouyx/amphtml,ampproject/amphtml,techhtml/amphtml,tlong2/amphtml,cvializ/amphtml,mhc-gh/amphtml,ampproject/amphtml,cory-work/amphtml,ampproject/amphtml,techhtml/amphtml,techhtml/amphtml,mhc-gh/amphtml,voyagegroup/amphtml,taboola/amphtml,alanorozco/amphtml,widespace-os/amphtml,smartadserver/amphtml,taboola/amphtml,rsimha-amp/amphtml,danielrozenberg/amphtml,widespace-os/amphtml,cvializ/amphtml,danielrozenberg/amphtml,honeybadgerdontcare/amphtml,src-code/amphtml,laterpay/amphtml,jridgewell/amphtml,prateekbh/amphtml,jmadler/amphtml,smartadserver/amphtml,sebastianbenz/amphtml,sharethrough/amphtml,prateekbh/amphtml,media-net/amphtml,yandex-pcode/amphtml,widespace-os/amphtml,rsimha-amp/amphtml,cvializ/amphtml,rsimha-amp/amphtml,voyagegroup/amphtml,smartadserver/amphtml,ampproject/amphtml,cory-work/amphtml,nexxtv/amphtml,honeybadgerdontcare/amphtml,laterpay/amphtml,danielrozenberg/amphtml,cory-work/amphtml,sebastianbenz/amphtml,erwinmombay/amphtml,honeybadgerdontcare/amphtml,adup-tech/amphtml,mhc-gh/amphtml,lannka/amphtml,mhc-gh/amphtml,mhc-gh/amphtml,jpettitt/amphtml,jpettitt/amphtml,yandex-pcode/amphtml,jmadler/amphtml,lannka/amphtml,nexxtv/amphtml,cory-work/amphtml,src-code/amphtml,danielrozenberg/amphtml,dotandads/amphtml,jpettitt/amphtml,media-net/amphtml,dotandads/amphtml,prateekbh/amphtml,jmadler/amphtml,jmadler/amphtml,widespace-os/amphtml,adup-tech/amphtml,alanorozco/amphtml,danielrozenberg/amphtml,voyagegroup/amphtml,zhouyx/amphtml,Gregable/amphtml,zhouyx/amphtml,laterpay/amphtml,src-code/amphtml,laterpay/amphtml,danielrozenberg/amphtml,tlong2/amphtml,tlong2/amphtml,dotandads/amphtml,tlong2/amphtml,danielrozenberg/amphtml,voyagegroup/amphtml,smartadserver/amphtml,yandex-pcode/amphtml,prateekbh/amphtml,media-net/amphtml,mhc-gh/amphtml,taboola/amphtml,taboola/amphtml,voyagegroup/amphtml,voyagegroup/amphtml,media-net/amphtml,lannka/amphtml,erwinmombay/amphtml,honeybadgerdontcare/amphtml,tlong2/amphtml,sebastianbenz/amphtml,jpettitt/amphtml,tlong2/amphtml,yandex-pcode/amphtml,Gregable/amphtml,mhc-gh/amphtml,laterpay/amphtml,sebastianbenz/amphtml,media-net/amphtml,dotandads/amphtml,nexxtv/amphtml,cory-work/amphtml,ampproject/amphtml,sebastianbenz/amphtml,adup-tech/amphtml,jridgewell/amphtml,zhouyx/amphtml,zhouyx/amphtml,zhangsu/amphtml,adup-tech/amphtml,rsimha-amp/amphtml,nexxtv/amphtml,erwinmombay/amphtml,lannka/amphtml,jpettitt/amphtml,dotandads/amphtml,cvializ/amphtml,cvializ/amphtml,alanorozco/amphtml,jpettitt/amphtml,zhouyx/amphtml,jpettitt/amphtml,sebastianbenz/amphtml,jridgewell/amphtml,yandex-pcode/amphtml,prateekbh/amphtml,ampproject/amphtml,lannka/amphtml,nexxtv/amphtml,lannka/amphtml,Gregable/amphtml,danielrozenberg/amphtml,honeybadgerdontcare/amphtml,Gregable/amphtml,techhtml/amphtml,zhouyx/amphtml,Gregable/amphtml,nexxtv/amphtml,techhtml/amphtml,erwinmombay/amphtml,zhangsu/amphtml,alanorozco/amphtml,sharethrough/amphtml,adup-tech/amphtml,honeybadgerdontcare/amphtml,media-net/amphtml,laterpay/amphtml,ampproject/amphtml,jmadler/amphtml,media-net/amphtml,cory-work/amphtml,rsimha-amp/amphtml,sharethrough/amphtml,jridgewell/amphtml,jridgewell/amphtml,widespace-os/amphtml,alanorozco/amphtml,jridgewell/amphtml,rsimha-amp/amphtml,alanorozco/amphtml,techhtml/amphtml,sharethrough/amphtml,jridgewell/amphtml,honeybadgerdontcare/amphtml,sharethrough/amphtml,zhangsu/amphtml,lannka/amphtml,smartadserver/amphtml,smartadserver/amphtml,mhc-gh/amphtml,alanorozco/amphtml,media-net/amphtml,taboola/amphtml,cory-work/amphtml,taboola/amphtml,jmadler/amphtml,Gregable/amphtml,src-code/amphtml,rsimha-amp/amphtml,alanorozco/amphtml,erwinmombay/amphtml,taboola/amphtml,src-code/amphtml,zhangsu/amphtml,prateekbh/amphtml,voyagegroup/amphtml,cvializ/amphtml,yandex-pcode/amphtml,yandex-pcode/amphtml,adup-tech/amphtml,Gregable/amphtml,zhangsu/amphtml