Refactor rspec tests.