tests for put request