Added tests for ElementContainer::waitFor