Bug 913395 - Add test for waitForElement function.

Add test for waitForElement function.
http://bugzil.la/913395