Updated test.sh. Getting invalid JSON response?