Fix failed tests in RSpec3