Remove some warnings when running RUBYOPT=-w rake
Convert to expect syntax