rest-core: make test cases compile again.