Add unit tests for request.put