Fixed assertElementPresent and assertElementNotPresent