Upgrade test to use non depricated library
Parse JSON on PUT requests too