added feature of extend elements in schema.
fix test of schema parser.