Refactor Rspec integration tests