Schema is not throwing but returning errors.
fixed unit tests