- Added initWithJSON and initWithXML

- Added unit tests for new methods