Testing model with JSON and XML