add test code for RESTful PUT API