Also made test method dependant on DOM load