Added functional tests for REST API service.