RESTful API: Fix tests.