Rewriting tests to RSpec