patch and put tests