Fixing functional test.
|#664|Renaming restapi to rest-api.