add test for element waitForElement + fix waitForElement infinit wait
call target fuction immediately inside waitFor