Add test for sending json to web server