fixed some broken specs exposed by ruby -S rspec