Tests if dynamic error XC0027 is thrown if the document is not valid or the step doesn't support DTD validation.