Fix rspec tests because of dependency on stdlib