convert the old tests to Rspec