add test code for RESTful POST and DELETE API