add RestCtrl.read tests
implement RestCtrl.read