Changed tests to use rspec