test rest using done()