fix test to handle rounding differences

ruby 1.8.7 and 1.9.3 appear to round differently
abstract dependency on generator