test for put request