Adding MetadataHandler. Validator now extends from MetadataHandler.
Fix test since we now throw an instance of class instead of String.
Adding index.dart.