Add rest-client when using mri to use script/test.rb
Fix test.rb script