add test cases for http patch method