migrated tests to rspec