malformedSchema test improvement