add test code for RESTful GET API