Rewrite rspec tests.