Fixed logic mistake in MetaModelValidator and  add tests