convert first test to rspec expect syntax