added verifyElementsPresent function
attempting to merge in HEAD