Added XML based response formatting and a unit test for it