CDAP-538: Replaced sendJson to sendString and updated related tests.