Added some tests and basic classes and interfaces according the the xml format.