test RESTful interface