created test for put api