minor changes to make spec coverage ruby 1.9 compatible