add checking to make sure testing element is loaded

testlazyloadclient test failed when running with firefox.