add checking to make sure testing element is loaded