[rest] fix test