Added shouldDisplayInvalidFormatException test