change tests to use rspec expect syntax