[restify] Add tests