Added tests for JSON to string conversion