Add test for RESTful API